package com.zhengx.moduletest;

import android.os.Bundle;
import com.zhengx.baselib.base.BaseActivity;
import com.zhengx.moduletest.ui.common.NavigationController;

import javax.inject.Inject;

public class MainActivity extends BaseActivity{

    @Inject
    NavigationController navigationController;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(com.zhengx.moduletest.R.layout.layout_activity_main);
        ModuleApplicationFake.getAppComponent()
                .mainActivityComponent()
                .activity(this)
                .build()
                .inject(this);
        if (savedInstanceState == null) {
            navigationController.navigateToMain();
        }
    }
}
